package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Bill;
import com.yiya.model.BillCplex;
import com.yiya.model.BillCplexModel;
import com.yiya.model.BillExample;

public interface BillMapper {
    int countByExample(BillExample example);

    int deleteByExample(BillExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Bill record);

    int insertSelective(Bill record);

    List<Bill> selectByExample(BillExample example);

    Bill selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Bill record, @Param("example") BillExample example);

    int updateByExample(@Param("record") Bill record, @Param("example") BillExample example);

    int updateByPrimaryKeySelective(Bill record);

    int updateByPrimaryKey(Bill record);
    
    List<BillCplex> selectByModel(BillCplexModel record);
    
    int countByModel(BillCplexModel record);
    
    /**
     * 获取账单（无分页）
     * @param record
     * @return
     */
    List<BillCplex> selectAllByModel(BillCplexModel record);
}